<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %>
<%@taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic-el" %>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@taglib uri="/WEB-INF/tld/application.tld" prefix="app" %>


<!-- TABLE CENTER -->
<table style="width: 100%">
	<tr>
		<td align="center" valign="top">
			<!-- CONTENT -->			
			<div class="content">
				<table class="con" style="height:600px">
					<tr>
						<td valign="top">
							<table class="breadory">
								<tr>
									<td>Matrículas em Aberto</td>
								</tr>
							</table>
						
							<table style="width:850px">
								<tr>
									<td valign="top" colspan="2">
										<table style="width: 100%" class="tbDadosConsulta">
											<tr>
												<th style="width:25px"></th>
												<th>Nome</th>
												<th style="width:110px">CPF</th>
												<th style="width:140px">Turma</th>
												<th style="width:120px">Dt. Matrícula</th>
												<th style="width:120px">Dt. Fim Curso</th>
												<th style="width:80px">Valor</th>
											</tr>
											<logic-el:present name="matriculaDebito" scope="request">
												<logic-el:iterate id="bean" name="matriculaDebito" scope="request" indexId="i">
													<tr class="linha${i%2}">
														<td style="text-align: center">${i+1}</td>
														<td style="text-align: left">${bean.aluno.nome}</td>
														<td style="text-align: center">
															<a href="#" onclick="window.location = 'consultarAluno.do?method=iniciar&aluno=${bean.aluno.codigo}'">
																${bean.aluno.cpf}
															</a>
														</td>
														<td style="text-align: left">${bean.turma.curso.nome}</td>
														<td style="text-align: center">
															<bean:write name="bean" property="cadastro" format="dd/MM/yyyy"/>
														</td>
														<td style="text-align: center">
															<bean:write name="bean" property="turma.termino" format="dd/MM/yyyy"/>
														</td>
														<td style="text-align: right">
															<bean:write name="bean" property="ordemServico.devedor" format="###,##0.00" locale="defaultLocale"/>
														</td>
													</tr>
												</logic-el:iterate>
												<tr>
													<td style="text-align: right" colspan="6"><b>Total:</b></td>
													<td style="text-align: right"><b>R$ 
														<bean:write name="valorTotal" format="###,##0.00" scope="request" locale="defaultLocale"/>
													</b></td>
												</tr>	
											</logic-el:present>							
										</table>
									</td>
								</tr>
							</table>							
						</td>
					</tr>						
				</table>	
			</div>	
		</td>
	</tr>
</table>

<script type="text/javascript">

</script>